﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XDL.Framework;

namespace JumpNFight.Simulation
{
    interface ITiledMap
    {
        /// <summary>
        /// Returns whether the given tile coordinate can be walked on.
        /// </summary>
        /// <param name="x">Tile X</param>
        /// <param name="y">Tile Y</param>
        /// <returns></returns>
        bool IsWalkable(int x, int y);

        /// <summary>
        /// Returns whether an entity can move into the given tile.
        /// </summary>
        /// <param name="x">Tile X</param>
        /// <param name="y">Tile Y</param>
        /// <returns>True if the entity can be moved to the tile, otherwise false</returns>
        bool IsNotWalkable(int x, int y);

        /// <summary>
        /// Returns whether the given tile coordinate is deadly.
        /// </summary>
        /// <param name="x">Tile X</param>
        /// <param name="y">Tile Y</param>
        /// <returns>True if the tile kills, false otherwise</returns>
        bool IsDeadly(int x, int y);
    }
}
